<script setup>
import { onMounted } from 'vue';
import { start } from 'qiankun';

onMounted(() => {
  if (!window.qiankunStarted) {
    window.qiankunStarted = true;
    start();
  }
})

function test() {
  window.actions.setGlobalState({
    data: {
      age: 20
    }
  })
}
</script>

<template>
  <div>
    <div>父级11111</div>
    <button @click="test">父级按钮</button>
  </div>
  <div id="team1">11111</div>
</template>

<style>
#team1 {
  height: 600px;
}
</style>
